package lg.minecraft.plugin.pokedex.command;

import lg.minecraft.plugin.library.command.CommandContext;
import lg.minecraft.plugin.library.command.SubCommand;
import lg.minecraft.plugin.pokedex.LGPokedex;

/**
 * @author langle__
 * @version 1.0
 */
public class SubReloadCommand extends SubCommand {

    public SubReloadCommand() {
        super("reload", "r");
    }

    @Override
    public String getPermission() {
        return "LGPokedex.command.reload";
    }

    @Override
    public String getDescription() {
        return "重载配置";
    }

    @Override
    public void onCommand(CommandContext context) {
        LGPokedex.reload();
        context.getSender().sendMessage("[§6§lLG§ePokedex§f] 重载配置完成");
    }

}
